<!DOCTYPE html>
<html>
<head>
	<title>E8NET</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <include file="./App/Admin/View/Include/css.html" />
    <link href="__PUBLIC__/Admin/css/lib/select2.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/compiled/form-showcase.css" type="text/css" media="screen" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

    <include file="./App/Admin/View/Include/navbar.html" />
    <include file="./App/Admin/View/Include/menu.html" />

	<!-- main container -->
    <div class="content">

        <!-- 表单提交按钮 -->
        <div class="skins-nav">
            <a href="javascript:submitForm('class-form','__APP__/Class/add');" class="skin first_nav selected">
                <span class="text">提交表单</span>
            </a>
            <a href="{:U('Class/index')}" class="skin second_nav">
                <span class="text">放弃提交</span>
            </a>
        </div>

        <div class="container-fluid">
            <div id="pad-wrapper" class="form-page">
                <div class="row-fluid form-wrapper">
                    <!-- left column -->
                    <div class="span6 column offset3">
                        <form id="class-form" />
                            <div class="field-box">
                                <label>班级名称:</label>
                                <input class="span8 inline-input" name="name" placeholder="格式如下 年纪+(班级)+描述 如12(1) , 11(3)对口" type="text" />
                            </div>
                            <div class="field-box">
                                <label>所属专业:</label>
                                <select class="select2 span8" name="profession_id">
                                    <option />
                                    <volist name="professionList" id="profession">
                                        <option value="{$profession.id}" /> {$profession.name}
                                    </volist>
                                </select>
                            </div>
                            <div class="field-box">
                                <label>班级描述:</label>
                                <textarea class="span8" name="description" rows="4" style=" height: 105px;"></textarea>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- end main container -->

	<include file="./App/Admin/View/Include/js.html" />
    <script src="__PUBLIC__/Admin/js/select2.min.js"></script>

    <script>
        $(function(){
            // select2 plugin for select elements
            $(".select2").select2({
                placeholder: "请选择一个院系"
            });
        })
    </script>

</body>
</html>